stack: Clip animation drawing
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Jan 2016 00:44:47 +0000 (01:44 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 22 Jan 2016 12:46:01 +0000 (13:46 +0100)
We use cairo_paint() when doing that and we don't want to overdraw the
content area.

gtk/gtkstack.c

index f7654090ee52b76c653cdfcaedf3937b864f7b66..2effc1f906943d50eb72dda02e6d476d56fab57d 100644 (file)
@@ -2148,6 +2148,12 @@ gtk_stack_render (GtkCssGadget *gadget,
               cairo_destroy (pattern_cr);
             }
 
+          cairo_rectangle (cr,
+                           0, 0,
+                           gtk_widget_get_allocated_width (widget),
+                           gtk_widget_get_allocated_height (widget));
+          cairo_clip (cr);
+
           switch (priv->active_transition_type)
             {
             case GTK_STACK_TRANSITION_TYPE_CROSSFADE: